<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
<script type="text/javascript">
    function OnPageOfficeCtrlInit() {
        // PageOffice的初始化事件回调函数，您可以在这里添加自定义按钮
        pageofficectrl.AddCustomToolButton("另存到本地", "SaveAs()", 5);
        pageofficectrl.AddCustomToolButton("页面设置", "PrintSet()", 0);
        pageofficectrl.AddCustomToolButton("打印", "PrintFile", 6);
        pageofficectrl.AddCustomToolButton("全屏/还原", "IsFullScreen()", 4);
        pageofficectrl.OfficeToolbars = false;
    }
    function SaveAs() {
        pageofficectrl.ShowDialog(3);
    }

    function PrintSet() {
        pageofficectrl.ShowDialog(5);
    }

    function PrintFile() {
        pageofficectrl.ShowDialog(4);
    }

    function IsFullScreen() {
        pageofficectrl.FullScreen = !pageofficectrl.FullScreen;
    }

</script>
<div style=" width:auto; height:700px;" th:utext="${pageoffice}">
</div>
</body>

</html>
